package com.crm.controller;

import com.crm.pojo.Cust;
import com.crm.pojo.Dept;
import com.crm.service.CustService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class CustController {
    @Autowired
    private CustService custService;
    @GetMapping(value = "/custs.do")
    public List<Cust> selectAllCusts(){
        return custService.findAllBasicCusts();
    }

    @GetMapping(value = "/custs1.do")
    public List<Cust> selectAllCusts1(){
        return custService.findAllBasicCusts1();
    }

}
